import common from './common'
import paths from './paths'

const correctService = {};

(function (service) {
  service.correctProject = function (projectId, state, activityName, taskId, limitTime, dirName, sms, reason) {
    return common.post(paths.correct.correctProject, { projectId: projectId, state: state, activityName: activityName, taskId: taskId, limitTime: limitTime, dirName: dirName, sms: sms}, reason);
  }

  service.finishProjectCorrect = function (projectId, correctId, state, sms) {
    return common.post(paths.correct.finishProjectCorrect, {projectId: projectId, correctId: correctId, state: state, sms: sms}, null);
  }
  service.createNumber = function (correct) {
    return common.post(paths.project.createNumber, null,correct);
  }
  service.deleteNumber = (data) => {
    return common.post(paths.project.deleteNumber, null, data)
  }
})(correctService)
export default correctService;